/*
 * @Author: ZhaoZhiqi
 * @Date: 2023-11-13 18:15:38
 * @LastEditors: ZhaoZhiqi
 * @LastEditTime: 2024-01-19 18:29:26
 * @Description: 
 * @FilePath: \labtalk-admin\src\pages\Code\api.js
 */
import requset from '../../api/request';

/**
 * @description: 获取条形码数据
 * @return {*}
 */
export const getBarcodeListAPI = (data) => {
  return requset('barcode', 'get', data);
};

/**
 * @description: 删除条码
 * @return {*}
 */
export const deleteBarcodeAPI = (data) => {
  return requset(`barcode/${data.id}`, 'delete', {});
};

/**
 * @description: 新增条码
 * @return {*}
 */
export const addBarcodeAPI = (data) => {
  return requset(`barcode`, 'post', data);
};

/**
 * @description: 更新条码
 * @return {*}
 */
export const updateBarcodeAPI = (data) => {
  return requset(`barcode`, 'put', data);
};